using System;
using MCMLXVII.BackEnd.Services.SystemConfiguration.Messages;

namespace MCMLXVII.Tools.OrganizationChart
{
    class StaticCache
    {
        private static msgSecurityProvider[] _SecurityProviders;
        private static bool Initialized;

        public static msgSecurityProvider[] SecurityProviders
        {
            get 
            {
                if (!Initialized)
                {
                    _SecurityProviders = BusinessActions.GetEnabledSecurityProviders();
                    Initialized = true;
                }
                return StaticCache._SecurityProviders; 
            }
        }

    }
}
